﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace JTT809_2011_Service.Extensions
{
    public class IPEndPointOptions
    {
        /// <summary>
        /// ip
        /// </summary>
        public string Ip { get; set; }
        /// <summary>
        /// 端口号
        /// </summary>
        public int Port { get; set; }

        public readonly IPEndPoint iPEndPoint;
        public IPEndPointOptions()
        {

        }

        public IPEndPointOptions(string ip,int port)
        {
            Ip = ip;
            Port = port;
            iPEndPoint = new IPEndPoint(IPAddress.Parse(Ip), Port);
        }
    }
}
